/** ViewAppointment */
package client.events;

import java.util.List;

import domain.appointment.Appointment;
import domain.user.SystemUser;

/** 
 * event to fire when going to view appointments page
 * @author jessienewman
 *
 * @version $Revision: 1.0 $
 */
public class ViewAppointments {
	/**
	 * Field appointments.
	 */
	public List<Appointment> appointments;

	/**
	 * Field user.
	 */
	public SystemUser user;

	/** 
	 * creates view appointments page
	 * @param appointments appointments to show
	 * @param user user who has appointments
	 */
	public ViewAppointments(List<Appointment> appointments, SystemUser user) {
		this.appointments = appointments;
		this.user = user;
	}
	
	/**
	 * returns the super's toString
	
	 * @return String super's toString */
	public String toString() {
		return super.toString();
	}
}
